#if !defined(AFX_CHARTINTERACTIVEVIEW_H__2B9D0A16_9DE2_4219_91C3_40199D5DF905__INCLUDED_)
#define AFX_CHARTINTERACTIVEVIEW_H__2B9D0A16_9DE2_4219_91C3_40199D5DF905__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

//*******************************************************************************
// COPYRIGHT NOTES
// ---------------
// This is a sample for BCGControlBar Library Professional Edition
// Copyright (C) 1998-2016 BCGSoft Ltd.
// All rights reserved.
//
// This source code can be used, distributed or modified
// only under terms and conditions 
// of the accompanying license agreement.
//*******************************************************************************
//
// ChartInteractiveView.h : header file
//

#include "BCGPChartExampleDoc.h"
#include "BCGPChartExampleView.h"

/////////////////////////////////////////////////////////////////////////////
// CChartInteractiveView form view

#ifndef __AFXEXT_H__
#include <afxext.h>
#endif

class CChartInteractiveView : public CBCGPChartExampleView
{
protected:
	CChartInteractiveView();           // protected constructor used by dynamic creation
	DECLARE_DYNCREATE(CChartInteractiveView)

// Form Data
public:
	//{{AFX_DATA(CChartInteractiveView)
	enum { IDD = IDD_CHART_INTERACTIVE };
	CBCGPChartCtrl	m_wndChart;
	CString	m_strInfo;
	//}}AFX_DATA

// Attributes
public:
	virtual CBCGPChartVisualObject* GetChart()
	{
		return m_wndChart.GetChart();
	}

	virtual CBCGPBaseVisualCtrl* GetCtrl()
	{
		return &m_wndChart;
	}

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CChartInteractiveView)
	public:
	virtual void OnInitialUpdate();
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	virtual ~CChartInteractiveView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

	// Generated message map functions
	//{{AFX_MSG(CChartInteractiveView)
	//}}AFX_MSG
	afx_msg LRESULT OnMouseTrack(WPARAM wp, LPARAM lp);
	afx_msg LRESULT OnAfterDraw(WPARAM wp, LPARAM lp);
	afx_msg LRESULT OnAfterRecalcLayout(WPARAM wp, LPARAM lp);
	afx_msg LRESULT OnChartMouseUp(WPARAM wp, LPARAM lp);
	DECLARE_MESSAGE_MAP()

protected:
	CBCGPPointsArray	m_arMarkers;
	double				m_XLine;
	double				m_dblDataTableColumnWidth;

	CBCGPChartAxisY*	m_pAxisY1;
	CBCGPChartAxisY*	m_pAxisY2;

	CBCGPBrush			m_brLine;
	CBCGPBrush			m_brDataTable;
	CBCGPStrokeStyle	m_strokeStyle;
};

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_CHARTINTERACTIVEVIEW_H__2B9D0A16_9DE2_4219_91C3_40199D5DF905__INCLUDED_)
